/* Below we perform a check to make sure we are connected to the database
before we allow access to the home page, otherwise we redirect to the
page where our initialization is performed.
When this application loads, the url that appears in the "Go to:" box
of Navigator is "http://...../newvideo/home.htm" So if someone bookmarks
the site, when they return via the bookmark, it will not take them to
"start.htm" first to perform the database initialization, but it will
take them directly to "home.htm". In this case, the application will not be
able to retrieve data from the database. If we do not make the check, when
the user attempts to access another page that requires a database connection,
an error will be produced and the user will probably not know what has happened.
*/
if(!database.connected())
redirect("start.htm");

Customer Options
Administrator Options